/**
 * 
 */
package org.softTank.BC.entity.services;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.softTank.BC.entity.IdEntity;

/**
 * @author Yuzone
 *
 */
@Entity
@Table(name = "SSDB_MESSAGETYPE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class MessageType extends IdEntity {

	private String name;
	private String namespace;
	private String location;
	private String description;

	// private Operation operation;

	@Column(nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(nullable = false)
	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	@Column(nullable = false)
	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	@Column
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @ManyToOne
	 * @JoinTable(name = "SSDB_OPERATION_MESSAGETYPE", joinColumns = {
	 *                 @JoinColumn(name = "MESSAGETYPE_ID") },
	 *                 inverseJoinColumns = { @JoinColumn(name = "OPERATION_ID")
	 *                 }) public Operation getOperation() { return operation; }
	 * 
	 *                 public void setOperation(Operation operation) {
	 *                 this.operation = operation; }
	 **/
}
